package wt.hpad.dialog;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.widget.EditText;

import wt.hpad.R;

/**
 * Created by wt on 1.12.
 */

public class EditTextDialog extends SimpleDialog {

    private EditText edt_content;

    public EditTextDialog(Context mContext, Activity mActivity, int mRootViewid, int mBtnConfirmViewid, int mBtnCancelViewid) {
        super(mContext, mActivity, mRootViewid, mBtnConfirmViewid, mBtnCancelViewid);
    }

    public EditTextDialog(Activity activity) {
        super(activity.getApplicationContext(), activity, R.layout.dialog_edittext, R.id.btn_dialog_confirm, R.id.btn_dialog_cancel);
    }


    public String getEdtText() {
        View rootView = getRootView();
        edt_content = (EditText) rootView.findViewById(R.id.edt_content);
        return edt_content.getText().toString();
    }
}
